package com.bj58.argo.utils;

import java.io.File;

public abstract class FileUtil
{

  public static String getRootPath()
  {
    File file = new File(System.getProperty("user.dir"));
    String path = file.getAbsolutePath().replace('\\', '/');
    path = path.substring(0, path.indexOf('/'));
    return path;
  }

  public static void main(String[] args) {
    File file = new File(getRootPath());
    System.out.println(file.getPath());
    System.out.println(file.getAbsolutePath());
  }
}